Pregunta de entrevista de Google Cloud

How to solve a certain problem step by step