Invitae Interview Question

Write an algorithm that converts sequences to CIGAR.