class Solution { public: deque<int> que; queue<int> data; unsigned int size; int MaxVal() { if (que.empty()) return 0; return que.front(); } void PushData(const int &val) { data.push(val); while (!que.empty() && que.back(...