Pergunta de entrevista da empresa WorldQuant

how to create a fair probability using a biased coin (probability p for heads)