Pergunta de entrevista da empresa Amazon

Extend the previous question for finding sum of any three numbers in given array could be equal to x