Quantiphi interview question

questions based on JavaScript