Any Or All Hackerrank Solution