GGK Interview Question

pattern ques sorting ques 2 rounds