Button interview question

hash set related pre-computation coding question