AnAr Solutions interview question

Badics question based on js and ts