T-Systems Interview Question

find an error with a method with array loop and lambda