M Arrays Hackerrank Solution Python W3schools