Kings Learning interview question

basic computer science questions and ability to make logics