Question d’entretien chez Yandex

Given a string, compress it using RLE: aabccc -> a2bc3