GlobalLogic interview question

Most of the questions were from JavaScript