Editorial for question "bits please" asked in cow by MNIT (JAIPUR).

Please provide the solution for the question “Bits Please” asked in COW conducted by MNIT(JAIPUR).

https://www.codechef.com/COW2018/problems/BP

Thanks in advance.