Add java solution to reverse binary puzzle