Postgresql Count Character In String Interview Program