https://alandroidnet.com/related/java bitset hackerrank solution