add new solution about rotate matrix, flip based on diagonal