Pregunta de entrevista de Qualcomm

Some questions got straight off from leetcode and hackerrank