Percona interview question

One liner Shell script that were hard