Expected output showing trailing zeroes

Expected output showing trailing zeroes, for example
3 1 2 0
3 1 2 0
shows 2 4 0.

Click here to start solving coding interview questions