Kings Learning Interview Question

basic computer science questions and ability to make logics