Updated/edited test cases. Made one small edit to the main code to append the items with zero value.