Java Interface Hackerrank Solution Python W3schools