Java Functional Interface Voidstrap Codechef Python