Orangetoolz interview question

Basic concept of javascript and solved some problem.