MAQ Software Interview Question

2 basic frequency related coding problem and one cypher decoding.