The question demands you to encode the bit stream in 64 bit encoding, nothing else.
For which you can directly refer the encoding table https://en.m.wikipedia.org/wiki/Base64 which isn't much complex to follow or derive.
Make groups of 6 (2^6=64) bits and encode them individually by looking at the table.