Python Basic Certificate Hackerrank Solution Sales