CIBC Mellon interview question

What is the diff. Between cash method and accural method