Neogen interview question

my experience to solve the difficult