Altoros interview question

How compound protocol accrue interest?