harbor run -t openthoughts/tasktrove-exp-rpt-codenet-python-v2-codenet-python-0322
harbor download openthoughts/tasktrove-exp-rpt-codenet-python-v2-codenet-python-0322
You are given a string S consisting of characters: b, d, p, and q. Your task is to determine whether the string S is a mirror string.
S
b
d
p
q
A string is defined as a mirror string if performing the following operations on S results in the same string S:
True
False
Input:
pbdq
Output:
Explanation:
qdbp
pdqp
pqdp
bdpb
bqdp
Implement your solution in the /app/ directory of your project.
/app/
Important: place your implementation at /app/solution.py so the verifier can run it.
/app/solution.py