MayStreet Interview Question

fix some badly written code