Pergunta de entrevista da empresa USAA

Logical / Technical question. Had a coordinate system with plots pointed and needed to pseudo code a logical question asked by them. Medium difficulty.