Problem Link: [(https://mirror.codeforces.com/contest/1097/problem/B)]
Solution Link: [(https://mirror.codeforces.com/contest/1097/submission/212513673)]
Here, Instead of following bitmasks method, I used itertools.combinations() module of Python and got accepted. Can someone please help to find its space and time complexity in worst case scenario? Thank you...