Added solution for L2 - PermCheck