Pregunta de entrevista de Qualcomm

Simple algorithm questions and system designing