Postgresql Get First Character Javascript Interview