Good Day All.

I'm on my way to solve a Pairs of Songs With Total Durations Divisible by 60 problem using streams.Though I've a solution using classic for loops, still curious how

can we get this done with stream API. Given an array which contains play duration of songs in minutes. User can select 2 songs and if sum of those 2 songs is multiple of 60 minutes then we count it as one

pair of songs available which is multiple of 60.

Test Data: [20, 40, 10, 25] = > Count = 0

[20+40] = 60%60 = 0 [One pair which is multiple of 60 minutes], Count = 1

[20+10] = 30 = > Not a multiple of 60, Count = 1

[20+25] = 45 = > Not a multiple of 60, Count = 1

I'm trying to acheive the same through stream, by summing the consecutive pairs in the array. Tried with reduce method and limit method to acheive the same functionality but I'm consuming more time and got stuck to proceed. Could someone shed some light on this to proceed or let me know what I should to learn in stream to get this done ?

Kind Regards.