after posting this ques here I noticed that in the "instructions"', right at the beginning of the ques paper, it was clearly mentioned B is binomial distribution. solving it assuming a bin distribution immediately gives the ans.
the guy who prepared the solution/hint solved it by assuming it to be a Beta distribution and arrived at a different ans. this is what got me confused.
---
"You don't have to believe in God, but you should believe in The Book." -Paul Erdős