Rating: 0

tl;dr

This basically does HASH(flag | input) (binary OR) so we can just check if what we recieve is the same as HASH(flag) and deduce the flag bit by bit