Appiness Interactive interview question

basic FE questions