Dropbox 电面

Problem Statement: Given a file directory, return lists of files that are same in content.
Example

Input: /foo
    - /foo
       - /images
        - /foo.png  <------.
      - /temp              | same file contents
        - /baz             |
          - /that.foo  <---|--.
      - /bar.png  <--------'  |
      - /file.tmp  <----------| same file contents
      - /other.temp  <--------'
      - /blah.txt

Output
      [
         ['/foo/bar.png', '/foo/images/foo.png'],
         ['/foo/file.tmp', '/foo/other.temp', '/foo/temp/baz/that.foo']
      ]

这个是要跑通还是只是伪代码?