Wingman Partners interview question

pseudo codes and aptitude Logical reasoning