write the python code for the given template according to requirements,
add comments to each line for the code we added to explain the what it is doing
run the code without errors,
run the testcase in outset
11 freelancers estão ofertando em média $136 nesse trabalho
Hello, I've read the requirements and I can do it. I'm a software engineer and a former CP competitor. I've done a lot of problems like this and have deep insight into algorithms, data structures.