Pinterest interview question

How do you do a binomial test? Explain in detail.