Q1: Regarding the codility test, where need to improve the code.
Sigiloso
The code was already optimized but I got to know what he was expecting, so I had optimized it that way then I had explained him why I had not did that way because it is missing one use-case. (That use case he was also not aware of earlier and got to know after I explained).