Angular Http Get Query Javascript Interview Coding