Sixt interview question

basic java script concepts, problem solving