Roku interview question

Q: Write a function to identify Precision, Accuracy and Recall for grouped binary outputs