Quantum Hall Effect in a Gate-Controlled p-n Junction of Graphene