Medium
Permission Flags
Read = 4, Write = 2, Execute = 1. Read a permission number (0–7) and print which permissions it contains as
r, w, x or -, like rw-. Use the & operator.Input
One integer 0–7.
Output
Three characters.
Sample 1
Input
7
Output
rwx
Sample 2
Input
6
Output
rw-
Output appears here